import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop037_删除客户扩展信息"
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,"客户管理","客户扩展信息")
firefox.find_element_by_link_text("删除").click()
firefox.switch_to_alert().accept()
time.sleep(3)
try:
    firefox.find_element_by_xpath("//td[text()='123']")
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)

except:
    writeLog("%s 测试通过" % testCase)

